package me.zhengjie.modules.lock.service.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zelk.smartlock.common.constant.Constant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 门锁操作指令查询请求参数
 **/
@ApiModel("门锁操作指令查询请求参数")
@Data
public class LockDeviceCmdListReqVO {
    @NotNull(message = "商户ID不能为空")
    @ApiModelProperty(value = "商户ID", dataType = "Long")
    private Long partnerId;

    @NotNull(message = "门锁的绑定ID不能为空")
    @ApiModelProperty(value = "门锁的绑定ID", dataType = "Long")
    private Long lockOwnerId;

    @ApiModelProperty(value = "指令Id", dataType = "Long")
    private Long cmdId;

    @JsonFormat(pattern = Constant.DATA_FORMAT, timezone = Constant.TIME_ZONE)
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;

    @JsonFormat(pattern = Constant.DATA_FORMAT, timezone = Constant.TIME_ZONE)
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;
}
